/*
* Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* Description:
* Author: huawei
* Create: 2022-8-15
*/
#include "trs_tscpu_sq.h"
#include "trs_ts_db.h"
#include "trs_chip_def_comm.h"

int trs_tscpu_sq_tail_update(struct trs_id_inst *inst, u32 sqid, u32 tail)
{
    return trs_ring_ts_db(inst, TRS_DB_TASK_SQ, sqid, tail);
}

int trs_tscpu_get_sq_db_paddr(struct trs_id_inst *inst, u32 sqid, u64 *paddr)
{
    return trs_get_ts_db_paddr(inst, TRS_DB_TASK_SQ, sqid, paddr);
}

int trs_tscpu_get_sq_tail(struct trs_id_inst *inst, u32 sqid, u32 *tail)
{
    return trs_get_ts_db_val(inst, TRS_DB_TASK_SQ, sqid, tail);
}
